// 页面的控制权限
checkLogin()
// 用户名渲染
yonghuming()
// 退出登录
tuichudenglu()

// 数据渲染
function shujuxuanran(data) {
  document.querySelector('.salary').innerHTML = data.salary
  document.querySelector('.student_count').innerHTML = data.student_count
  document.querySelector('.age').innerHTML = data.age
  document.querySelector('.group_count').innerHTML = data.group_count
}
// 获取就业统计数据
async function getData() {
  const token = localStorage.getItem('token')
  const res = await axios.get('/dashboard', {
    headers: { Authorization: token }
  })
  console.log(res)
  const { overview } = res.data.data
  //   console.log(overview)
  shujuxuanran(overview)
}
getData()
